projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c70c5cc
)
luci-base: fix sysauth cookie not removed on logout
author
Kyle Rogers
<
[email protected]
>
Wed, 26 Sep 2018 22:33:58 +0000
(18:33 -0400)
committer
Kyle Rogers
<
[email protected]
>
Thu, 27 Sep 2018 14:04:57 +0000
(10:04 -0400)
Signed-off-by: Kyle Rogers <
[email protected]
>
modules/luci-base/luasrc/controller/admin/index.lua
patch
|
blob
|
history
diff --git
a/modules/luci-base/luasrc/controller/admin/index.lua
b/modules/luci-base/luasrc/controller/admin/index.lua
index 7e0a2074375cc05a5438df4a6686c99656313241..9a084d10e27f5e63b50d102b4590f81593ad8d9a 100644
(file)
--- a/
modules/luci-base/luasrc/controller/admin/index.lua
+++ b/
modules/luci-base/luasrc/controller/admin/index.lua
@@
-94,8
+94,8
@@
function action_logout()
if sid then
utl.ubus("session", "destroy", { ubus_rpc_session = sid })
- luci.http.header("Set-Cookie", "sysauth=%s; expires=%s; path=%s
/
" %{
-
sid
, 'Thu, 01 Jan 1970 01:00:00 GMT', dsp.build_url()
+ luci.http.header("Set-Cookie", "sysauth=%s; expires=%s; path=%s" %{
+
''
, 'Thu, 01 Jan 1970 01:00:00 GMT', dsp.build_url()
})
end